var t = require("../@babel/runtime/helpers/toConsumableArray");

function e() {
    this.actions = new Map();
}

e.prototype.addNotice = function(e, o) {
    if (this.actions.has(e)) {
        var i = this.actions.get(e);
        this.actions.set(e, [].concat(t(i), [ o ]));
    } else this.actions.set(e, [ o ]);
}, e.prototype.removeNotice = function(t) {
    this.actions.delete(t);
}, e.prototype.postNotice = function(t, e) {
    this.actions.has(t) && this.actions.get(t).forEach(function(t) {
        return t(e);
    });
}, module.exports = new e();